﻿<?php $this->load->view('layout/header'); ?>
<form name="form1" method="post" action="" id="form1">
    <div id="container">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_form">
            <tr class="table_form_title">
                <td colspan="4">
                    移动栏目
                </td>
            </tr>
            <tr class="table_form_row">
                <td align="right" style="width: 15%">
                    移动对象：
                </td>
                <td>
                    <span id="lblClassName">
                        <?php
                        $listname = array();
                        foreach ($classlist as $k => $v) {
                            $listname[] = $v['classname'];
                        }
                        echo implode('，', $listname);
                        ?></span>

                </td>
            </tr>
            <tr class="table_form_row">
                <td style="width: 15%" align="right">
                    移动到：
                </td>
                <td>
                    <select name="parentid" id="parentid" size="20">
                        <option value="0">根结点</option>
                        <?php foreach ($tree as $k => $v) { ?>
                            <option value="<?php echo $k; ?>"><?php echo $v; ?></option>
                        <?php } ?>
                    </select><span id="parentid_tips" style="display: none;color:Red;">请选择</span>
                </td>
            </tr>
            <tr class="table_form_btn">
                <td align="right">&nbsp;
                    
                </td>
                <td colspan="3">
                    <input type="submit" name="btnSave" value="保存" id="btnSave" />
                    <input type="button" name="Submit" value="返回" onclick="javascript:history.go(-1);" />
                    <span id="errMsg" style="color:Red;"></span>
                </td>
            </tr>
        </table>
    </div>
</form>
<script>
    $('#form1').submit(function() {
        var is = true;
        if (!selete_tips($('#parentid'))) {
            is = false;
        }
        if ($('#parentid').val() == 0) {
            is = true;
        }
        return is;
    });
</script>
<?php $this->load->view('layout/footer'); ?>